package com.erp.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.erp.pojo.Role;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface RoleMapper extends BaseMapper<Role> {

    //根据uid查rid
    @Select("select rid from sys_role_user where uid = #{uid}")
    public List<Integer> getRoleByUid(Integer uid);
}
